package StringExercise;

public class startsWith {
    public static void main(String[] args) {
        String str = "genshin impact.jpg";
        boolean a = str.startsWith("gen");
        boolean b = str.endsWith("jpg");
        System.out.println(a+","+b);

        String str1 = "Cygames.jpg";
        boolean a1 = str1.startsWith("C");
        boolean b1 = str1.endsWith("mp4");
        System.out.println(a1+","+b1);
    }
}
